package com.kevin.designpattern.factory_method.factory;

public class Client {

    public static void main(String[] args) {

        CoffeeStore store = new CoffeeStore();

        store.setFactory(AmericanCoffee::new);

        Coffee coffee = store.orderCoffee();
        System.out.println(coffee.getName());

    }
}
